<?php
//+---------------------------------------------------------------------------------------------------------------------
//| 人生是荒芜的旅行，冷暖自知，苦乐在心
//+---------------------------------------------------------------------------------------------------------------------
//| Author:Janmas <janmas@126.com>
//+---------------------------------------------------------------------------------------------------------------------
//| 
//+---------------------------------------------------------------------------------------------------------------------


namespace app\admin\controller;


class Upload extends Admin
{
	protected $noNeedAuth = ['*'];
	protected $noNeedLogin = ['*'];

    /**
     * 没得啥用
     * 后台是form表单上传文件
     * api模块应该用得到
     * 但是放到admin模块也不对啊
     * 没用了  放common了 到时候直接继承common的Upload类
     * @param string $name
     * @return int|mixed|\think\response\Json
     * @throws \think\Exception
     */
	public function upload($name=''){
		return \app\admin\model\FileManager::upload($this->request->file($name));
	}
}